// ValidationAspects
// Written by Mike Saunders
// Released under Microsoft Public License (Ms-PL)
using ValidationAspects.Core;

namespace ValidationAspects
{
	public static class ValidationSettings
	{
		private static readonly ExceptionMessageFormatter exceptionMessageFormatter = new ExceptionMessageFormatter();

		static ValidationSettings()
		{
			StateValidateProperties = true;
			InterceptValidateProperties = true;
		}

		public static IFormatExceptionMessage FormatExceptionMessage
		{
			get { return exceptionMessageFormatter; }
		}

		public static bool StateValidateProperties { get; set; }
		public static bool InterceptValidateProperties { get; set; }
	}
}